import WeUniform from './WeUniform'

class WeLengthwaysUniform {
    _weUniform
    _showGrid = false
    _showGridLabel = true
    _sectPositionX = 0.0
    _sectPositionY = 1.0
    _sectPositionZ = 0.0
    constructor() {
        const floatUniform = {
            lengthWaysFilterMin: -1000.0,
            lengthWaysFilterMax: 10000.0,
            lengthwaysAlpha: 1.0,
        };

        this._weUniform = new WeUniform({
            floatUniform,
            name: 'WeLengthwaysUniform'
        });
    }

    get weUniform() {
        return this._weUniform
    }

    get showGrid() {
        return this._showGrid
    }
    
    set showGrid(value) {
        this._showGrid = value;
    }

    get showGridLabel() {
        return this._showGridLabel
    }
    
    set showGridLabel(value) {
        this._showGridLabel = value;
    }
    
    get sectPositionX() {
        return this._sectPositionX
    }
    
    set sectPositionX(value) {
        this._sectPositionX = value;
    }

    get sectPositionY() {
        return this._sectPositionY
    }
    
    set sectPositionY(value) {
        this._sectPositionY = value;
    }

    get sectPositionZ() {
        return this._sectPositionZ
    }
    
    set sectPositionZ(value) {
        this._sectPositionZ = value;
    }

    get alpha() {
        return this._weUniform.Properties.lengthwaysAlpha;
    }

    set alpha(value) {
        this._weUniform.Properties.lengthwaysAlpha = value;
    }

    get filterMax() {
        return this._weUniform.Properties.lengthWaysFilterMax;
    }
    set filterMax(value) {
        this._weUniform.Properties.lengthWaysFilterMax = value;
    }

    get filterMin() {
        return this._weUniform.Properties.lengthWaysFilterMin;
    }
    set filterMin(value) {
        this._weUniform.Properties.lengthWaysFilterMin = value;
    }
}

export default WeLengthwaysUniform